package com.pimee.service.admin.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;
import com.pimee.mapper.ext.ExtSysEventMapper;
import com.pimee.model.SysEvent;
import com.pimee.service.BaseService;
import com.pimee.service.admin.ISysEventService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class SysEventService extends BaseService<SysEvent> implements ISysEventService {
	
	@Autowired
	private ExtSysEventMapper extSysEventMapper;
	
	@Override
	public PageInfo<SysEvent> pageList(Map<String, Object> params) {
		log.info("===> 配置列表分页查询...");
		startPage(params);// 设置分页
		List<SysEvent> list = extSysEventMapper.pageList(params);
		return new PageInfo<>(list);
	}
}
